package com.masohost.cocoadroid;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import android.widget.LinearLayout;

public class CocoaDroidActivity extends Activity implements OnClickListener {
	ImageView img1;
	ImageView img2;
	ImageView img3;
	ImageView img4;
	ImageView img5;
	ImageView img6;
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        loadMenu();
    }
    
    
    public void loadMenu(){
    	
		View view;
		LinearLayout layMenu  = (LinearLayout)findViewById(R.id.layMenu);
		view = View.inflate(this,R.layout.menu, null);
		
		layMenu.addView(view);
		
		setMenuListeners();
		
    }
        
    private void setMenuListeners(){
    	
    	MenuHelper.SetMenuListeners(this);

   }


	public void onClick(View v) {
		
		try{
			
			Intent question = new Intent(this,com.masohost.cocoadroid.SecondActivity.class);
			startActivity(question);
			
		}
		catch (Exception e) {
			System.out.println(e.getMessage());
			
		}
	}
    
}